<style>
.code {
	padding-left:50px;
	padding-top:30px;
	padding-bottom: 50px;
}
.code textarea, .code #demo {
	margin-left: 30px;
}
</style>
<div class="code">
	<div><strong>Just cut the code in the boxes under the Banners you like and add it directly to your web page.</strong></div><br />
	<textarea onmouseover="this.select()" rows="5" cols="60"><!-- BEGIN QpidAffiliate LINKS CODE --><?php if (!empty($adv->data['title'])) echo "<a href='$adv->url' target='_blank'>{$adv->data['title']}</a>","<br />"; if (!empty($adv->data['descrip'])) echo $adv->data['descrip'],"<br />";?><a title='<?php echo $adv->data['title']?>' href='$adv->url' target='_blank'><img src="<?php echo "http://",$_SERVER['HTTP_HOST'] .'/'. $adv->data['src']?>" width="<?php echo $adv->data['width']?>" height="<?php echo $adv->data['height']?>" alt="<?php echo $adv->data['title']?>" /></a><!-- END QpidAffiliate LINKS CODE --></textarea>
	<br /><br /><br />
	<div><strong>The banner appears as below on your site:</strong></div>
	<br />
	<div id="demo">
	</div>
</div>

<script>
$("textarea").keyup(function(){
	$("#demo").html($(this).val());
}).keyup();
</script>